<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectOrderDetail
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">OrderDetail Management</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
		<%= WebConfiguration.SiteName  %>
	</a>|
	<a href="<%= Url.Action("LogOff", "Account") %>" class="AdminPageText">
		LogOut
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script type="text/javascript">
		<% if (Model.OrderDetailModel.InfoText != null && Model.OrderDetailModel.InfoText != ""){ %>
			alert('<%= Model.OrderDetailModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListOrderDetail", Model); %>
	</div>
	<% using (Html.BeginForm("InsertOrderDetail", "Admin", FormMethod.Post, new { onsubmit = "return ValidateOrderDetail();" }))
	{ %>
		<input type="hidden" name="OrderDetail_IDOrder" value="<%= Model.OrderDetailModel.ReferKeys.IDOrder %>" />
		<input type="hidden" name="OrderDetail_IDFood" value="<%= Model.OrderDetailModel.ReferKeys.IDFood %>" />
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Add New OrderDetail</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Quantity: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("OrderDetail_Quantity", "", new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Price: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("OrderDetail_Price", "", new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<p>
									<input type="submit" value="Add New" />
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
